package pathways.SpeciesSpace;

/**
 * Title:        Pathways
 * Description:  Pure Java version of the Pathways Project.
 * Copyright:    Copyright (c) 2002
 * Company:      Ants Technologies
 * @author Veejay Sani
 * @version 1.0
 */
import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JDialog;
import javax.swing.JFrame;

public class CSearchSpeciesSpace extends JDialog implements IFinished
{
  
  CSpeciesSpaceView view = null;
  
  public CSpeciesSpaceView getSpeciesSpace()
  {
    return view;
  }
  
  public void finished()
  {
    this.hide();  
  }
  
  public CSearchSpeciesSpace(JFrame owner)
  {
    super(owner,true);
    
    view = new CSpeciesSpaceView(owner,this);
    view.setEditable(true);
    view.setPreferredSize(new Dimension(600,400));
    
    try
    {
      jbInit();
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
    
    pack();
    setSize(600,400);
  }
  
  private void jbInit() throws Exception
  {
    this.getContentPane().add(view, BorderLayout.EAST);
  }
}